<%@ Page Language="C#" MasterPageFile="~/Employee.master" AutoEventWireup="true" CodeFile="AddVPPPayment.aspx.cs" Inherits="Pages_Employee_ManageVPPPayment_AddVPPPayment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label1" runat="server" CssClass="header" Text="Add VPP Payment"></asp:Label>
    <br />
    <br />
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" />
    <table border="1" class="table01">
        <tr>
            <td style="width: 125px; height: 20px">
                <strong>DeliverableID:</strong></td>
            <td style="height: 20px; width: 328px;">
                <asp:TextBox ID="txtDeliverableID" runat="server" onkeyup="idChecker(this.value);" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqDeliverableID" runat="server" ControlToValidate="txtDeliverableID"
                    ErrorMessage="DeliverableID cannot be blank">*</asp:RequiredFieldValidator>
                <span id="spanAlert"></span>
                <asp:RegularExpressionValidator ID="regDeliverableID" runat="server" ControlToValidate="txtDeliverableID"
                    ErrorMessage="Invalid DeliverableID" ValidationExpression="^[1-9][0-9]*$">*</asp:RegularExpressionValidator>
                </td>
        </tr>
        <tr>
            <td>
                <strong>AmountToCollect:</strong></td>
            <td>
                <asp:TextBox ID="txtAmount" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqAmount" runat="server" ControlToValidate="txtAmount"
                    ErrorMessage="Amount to collect cannot be blank">*</asp:RequiredFieldValidator>
                <asp:CustomValidator ID="custAmount" runat="server" ControlToValidate="txtAmount"
                    ErrorMessage="Invalid Amount" OnServerValidate="custAmount_ServerValidate">*</asp:CustomValidator></td>
        </tr>
        <tr>
            <td>
                <strong>Charge:</strong></td>
            <td>
                <asp:TextBox ID="txtCharge" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqCharge" runat="server" ControlToValidate="txtCharge"
                    ErrorMessage="Charge cannot be blank">*</asp:RequiredFieldValidator>
                <asp:CustomValidator ID="custCharge" runat="server" ControlToValidate="txtCharge"
                    ErrorMessage="Invalid Charge" OnServerValidate="custCharge_ServerValidate">*</asp:CustomValidator>
                </td>
        </tr>
        <tr>
            <td style="height: 23px">
                <strong>IsCustomerPaid:</strong></td>
            <td style="height: 23px">
                <asp:CheckBox ID="cboIsCustomerPaid" runat="server" /></td>
        </tr>
        <tr>
            <td style="height: 27px">
            </td>
            <td style="height: 27px">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                &nbsp; &nbsp;
                <input type="reset" name="btnReset" value="Reset" />
                </td>
        </tr>
        <tr>
            <td style="height: 27px">
            </td>
            <td style="height: 27px">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                <br />
                <asp:Label ID="lblMessage" runat="server"></asp:Label>
                <asp:HyperLink ID="lnkVPPInvoice" runat="server" NavigateUrl="~/Pages_Employee/ManageVPPPayment/VPPInvoice.aspx"
                    Target="_blank" Visible="False">[lnkVPPInvoice]</asp:HyperLink></td>
        </tr>
    </table>
    
    <script type="text/javascript" src="../../Scripts/checkid.js"></script>
</asp:Content>

